<!doctype html>
<html>
<head>
    <title>添加产品</title>
    <?php $this->load->module('admin/index/page_header');?>
    <script type="text/javascript">
        window.UEDITOR_HOME_URL = "<?php echo URLPRE.'static/public/Lib/ueditor/';?>";
    </script>
    <script type="text/javascript" src="<?php echo URLPRE;?>static/public/Lib/ueditor/ueditor.config.js" charset="utf-8"></script>
    <script type="text/javascript" src="<?php echo URLPRE;?>static/public/Lib/ueditor/ueditor.all.min.js" charset="utf-8"></script>
    <script type="text/javascript" src="<?php echo URLPRE;?>static/public/Lib/ueditor/lang/zh-cn/zh-cn.js" charset="utf-8"></script>
    <script type="text/javascript" src="<?php echo URLPRE;?>static/public/Lib/color/color.js"></script>
    <script type="text/javascript" src="<?php echo URLPRE;?>static/public/Lib/select2/select2.min.js"></script>
    <script type="text/javascript" src="<?php echo URLPRE;?>static/public/Lib/select2/select2_locale_zh-CN.js"></script>
    <link href="<?php echo URLPRE;?>static/public/Lib/select2/select2.css" rel="stylesheet" />
    <link href="<?php echo URLPRE;?>static/public/Lib/select2/select2-bootstrap.css" rel="stylesheet" />
    <!--引入CSS-->
    <link rel="stylesheet" type="text/css" href="<?php echo URLPRE;?>static/public/Lib/webuploader/webuploader.css">
    <!--引入JS-->
    <script type="text/javascript" src="<?php echo URLPRE;?>static/public/Lib/webuploader/webuploader.js"></script>
</head>
<body>
<div class="wrap">
    <div id="home_toptip"></div>
    <div class="nav">
        <ul>
            <li><a href="<?php echo $index_url;?>">产品列表</a></li>
            <?php if($edit_status):?>
                <li class="current"><a href="javascript:void(0)">编辑产品</a></li>
            <?php else:?>
                <li class="current"><a href="javascript:void(0)">添加产品</a></li>
            <?php endif;?>

        </ul>
    </div>
    <div class="table_full">
        <form method="post" class="formvalidate" action="<?php echo $form_url;?>">

            <div class="table_full">
                <table class="tab_label" width="100%" id="jiben_config">
                    <col class="th" />
                    <col/>
                    <tbody>

                    <tr>
                        <th>类型：</th>
                        <td>
                            <label>
                            <input type="radio" value="0"   name="Form[type]" <?php if(!$type):?>checked<?php endif;?> class="input rounded" size="60" />菜品
                            </label>
                            <label>
                            <input type="radio" value="1"   name="Form[type]" <?php if($type):?>checked<?php endif;?> class="input rounded" size="60" />酒水
                            </label>
                        </td>
                    </tr>
                
                    <tr>
                        <th>产品名称：</th>
                        <td>
                            <input type="text" value="<?php echo $name;?>" name="Form[name]" class="input rounded" size="60" validate="{required:true}"/>
                        </td>
                    </tr>
                    <tr>
                        <th>金额：</th>
                        <td>
                            <input type="text"   name="Form[money]"  value="<?php echo $money;?>" class="input rounded" size="60" validate="{required:true,number:true}"/>
                        </td>
                    </tr>


                    </tbody>
                </table>
            </div>

            <?php if($id):?>
                <input name="Form[id]" type="hidden" value="<?php echo $id;?>" />
            <?php endif;?>

            <div class="btn_wrap">
                <div class="btn_wrap_pd">
                    <button type="submit" class="btn btn_submit J_ajax_submit_btn">提交</button>
                </div>
            </div>
        </form>
    </div>
</div>


</body>
</html>